package com.lucifer.cloud.boot.blog.chat.tools;

import com.lucifer.cloud.boot.blog.chat.tools.domain.request.WeatherRequest;
import com.lucifer.cloud.boot.blog.chat.tools.domain.response.WeatherResponse;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Description;

import java.util.function.Function;

/**
 * @author lucifer
 * @date 2025/3/10 16:47
 */
@Configuration(proxyBeanMethods = false)
public class WeatherTools {

    WeatherService weatherService = new WeatherService();

    @Bean
    @Description("Get the weather in location")
    Function<WeatherRequest, WeatherResponse> currentWeather() {
        return weatherService;
    }
}
